package po;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Data {
    // 当前选择的数据库名
    private String dbName;
    // 当前选择的表名
    private String tableName;
    // 当前采集时间
    private String time;
    // 当前采集频率
    private Integer freqHour;
    private Integer freqMinute;
    private Integer freqSecond;
    private Integer freqMinSecond;
    private String errorMessages;
    // 字段信息需要使用Map
    private Map<String, dataList> plcData = new HashMap<>();


    public static class dataList {
        private List plcDataTypes;
        private List plcAddresses;
        private List defaultValue;

        public List getPlcDataTypes() {
            return plcDataTypes;
        }

        public void setPlcDataTypes(List plcDataTypes) {
            this.plcDataTypes = plcDataTypes;
        }

        public List getPlcAddresses() {
            return plcAddresses;
        }

        public void setPlcAddresses(List plcAddresses) {
            this.plcAddresses = plcAddresses;
        }

        public List getDefaultValue() {
            return defaultValue;
        }

        public void setDefaultValue(List defaultValue) {
            this.defaultValue = defaultValue;
        }
    }

    public String getDbName() {
        return dbName;
    }

    public void setDbName(String dbName) {
        this.dbName = dbName;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public Integer getFreqHour() {
        return freqHour;
    }

    public void setFreqHour(Integer freqHour) {
        this.freqHour = freqHour;
    }

    public Integer getFreqMinute() {
        return freqMinute;
    }

    public void setFreqMinute(Integer freqMinute) {
        this.freqMinute = freqMinute;
    }

    public Integer getFreqSecond() {
        return freqSecond;
    }

    public void setFreqSecond(Integer freqSecond) {
        this.freqSecond = freqSecond;
    }

    public Integer getFreqMinSecond() {
        return freqMinSecond;
    }

    public void setFreqMinSecond(Integer freqMinSecond) {
        this.freqMinSecond = freqMinSecond;
    }

    public String getErrorMessages() {
        return errorMessages;
    }

    public void setErrorMessages(String errorMessages) {
        this.errorMessages = errorMessages;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public Map<String, dataList> getPlcData() {
        return plcData;
    }

    public void setPlcData(Map<String, dataList> plcData) {
        this.plcData = plcData;
    }
}
